type useConfig = {
  theme: "light" | "dark";
  collapsed: boolean;
};

export const useConfigStore = defineStore("config", {
  state: (): useConfig => ({
    theme: "light",
    collapsed: false,
  }),
  actions: {
    setTheme(theme: "light" | "dark") {
      this.theme = theme;
    },
  },
  persist: true,
});
